<!DOCTYPE html>
<html lang="en">
<head>
    <title>登录</title>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="css/demo.css"/>
    <link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">


    <script type="text/javascript">
        window.onload = function () {
            var oForm = document.getElementById('form-control');
            var aLabel = oForm.getElementsByTagName('label');
            var aInput = oForm.getElementsByTagName('input');

            for (var i = 0; i < aLabel.length; i++) {
                aInput[i].index = i;
                aLabel[i].onclick = function () {
                    for (var i = 0; i < aLabel.length; i++) {
                        aLabel[i].className = '';
                    }
                    this.className = 'active';
                };
                aInput[i].onclick = function () {
                    for (var i = 0; i < aLabel.length; i++) {
                        aLabel[i].className = '';
                    }
                    aLabel[this.index].className = 'active';
                }
            }
        }
    </script>

</head>
<body>


    <div class="page">
        <header id="header">
            <hgrounp class="white">
                <h1></h1>
                <h2></h2>
            </hgrounp>
        </header>
        <section class="demo">

            <div class="login" class="clearfix">
                <h2>登录</h2>
                <form method="post" action="" id="form-control">
                    <div class="control-round1" id="control-round1">
                        <label for="name" class="active">1</label>
                        <label for="password">2</label>
                    </div>
                    <div class="control-group">
                        <input type="text" name="loginName" id="name" placeholder="用户名*">
                    </div>
                    <div class="control-group">
                        <input type="password" name="loginName" id="password" placeholder="密码*">
                    </div>

                    <div class="form-actions">
                        <button class="btn" type="submit">登录</button>
                        <!--<a href="register.html"><button class="btn" type="button">注册</button></a>-->
                    </div>
                </form>
            </div>

        </section>
    </div>
    <div style="text-align:center;clear:both">


    </div>

</body>
</html>